package com.jml.mybatis.spring;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class MainTest {
	public static void main(String[] args) {
		ApplicationContext context = new ClassPathXmlApplicationContext("/mybatis/spring/mybatis-spring.xml");
		UserMapper userDao = (UserMapper)context.getBean("userMapper");
		User user = userDao.getUser(1);
		System.out.println(user);
	}
}
